import com.smartxls.WorkBook;

public class Test {

	public static void main(String args[]) {

		// Values of test parameters.
		int GENERATIONS = 100;
		int NAGENTS = 110;
		double STARTINGREPUTATION = 0.0; // +- 25%.
		double COST = 5;
		double BENEFIT = 5;
		int HISTORYSIZE = 10; //0 for no history

		Behavior testBehavior = new Behavior(NAGENTS, STARTINGREPUTATION, COST, BENEFIT, HISTORYSIZE);

		WorkBook wb = new WorkBook(); // an object for excel output needs renewal each month
		
		for(int i=0 ; i < GENERATIONS ; i++) {
			testBehavior.printToConsole(i);
			testBehavior.interactPrisoners(2, 1);
		}
		testBehavior.printToXLS(wb, GENERATIONS, GENERATIONS);
		
	}
}